import time

from appium import webdriver
from appium.options.common.base import AppiumOptions
from appium.webdriver.common.appiumby import AppiumBy

from basic.basepage import BasePage
from page.page_shopping.page_function_shopping_car import PageShoppingCart


class PageShoppingClass(BasePage):
	def buy_xiaomi_phone_Xiaomi_15S_Pro(self):
		self.click_by_text("Xiaomi 15S Pro")
		return PageShoppingCart()
	def buy_to_new_xiaomi_phone_Xiaomi_15_Ultra(self):
		self.click_by_text("Xiaomi 15 Ultra")
		return PageShoppingCart()
	def buy_to_new_xiaomi_phone_Xiaomi_15_Pro(self):
		self.click_by_text("Xiaomi 15 Pro")
		return PageShoppingCart()
	def buy_to_new_xiaomi_phone_Xiaomi_15(self):
		self.click_by_text("Xiaomi 15")
		return PageShoppingCart()
	def redmi_K_REDMI_K80_supremeEdition(self):
		BasePage().Redmi_phone()
		self.click_by_text("REDMI K80 至尊版")
		return PageShoppingCart()
	def redmi_K_REDMI_K80_Pro(self):
		BasePage().Redmi_phone()
		self.click_by_text("REDMI K80 Pro")
		return PageShoppingCart()
	def redmi_K_REDMI_K80(self):
		BasePage().Redmi_phone()
		self.click_by_text("REDMI K80")
		return PageShoppingCart()
	def redmi_K_REDMI_K70_supremeEdition(self):
		BasePage().Redmi_phone()
		self.click_by_text("Redmi K70 至尊版")
		return PageShoppingCart()